﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Core.Models
{
    [MetadataType(typeof(PostMetadata))]
    public partial class Post : IBaseObject
    {
    }

    public class PostMetadata
    {
        public object Id { get; set; }
        [Required(ErrorMessage = "Title is required")]
        public object Title { get; set; }
        [Required(ErrorMessage = "Content is required")]
        public object Content { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy HH:mm:ss}")]
        public object CreatedDate { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy HH:mm:ss}")]
        public object ModifyDate { get; set; }

        public virtual object Comments { get; set; }
    }
}
